/**
 * jims
 */
package com.jims.master.modules.doctor.medicalService.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.doctor.medicalService.entity.SDoctorPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 医生提供的服务日程表DAO接口
 * @author 医生提供的服务日程表
 * @version 2017-05-07
 */
@MyBatisDao
public interface SDoctorPlanDao extends CrudDao<SDoctorPlan> {

    /**
     * 获取一天的日程信息
     * @return
     */
    public List<SDoctorPlan> findOneDay(SDoctorPlan sDoctorPlan);

    /**
     * 获取服务的所有日程
     * @return
     */
    public List<SDoctorPlan> getPlanByServerId(@Param("serviceId")String serviceId);

    /**
     * 获取一天的日程信息
     * @return
     */
    public List<SDoctorPlan> findMonthDate(SDoctorPlan sDoctorPlan);

    public int deleteOneDay(SDoctorPlan sDoctorPlan);
    /**
     * 日程中服务被有效购买数（30分钟未付款无效）
     * @param sDoctorPlan
     * @return
     */
    public Integer findOrderedNumOfPlan(SDoctorPlan sDoctorPlan);
}